package com.codi.bus.core.resultModel;

import com.codi.base.util.MoneyUtils;
import com.codi.bus.core.domain.Profit;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by asus on 2018/5/11.
 */

@Data
@Accessors(chain = true)
public class ProfitResult extends BaseResult {
    private static final long serialVersionUID = 1L;
    private BigDecimal accumIncome;
    public String getAccumIncomeString(){
        return MoneyUtils.formatMoney(this.accumIncome, 2);
    }

    private Integer totalCount;

    private List<Profit> profits;
}
